package com.lagou.user.dao;

import com.lagou.common.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * created by kirito at 2020/6/23
 */
public interface IUserRepository extends JpaRepository<User, Integer> {

    User findByEmail(String email);

    /**
     * 根据邮箱和密码查询用户
     *
     * @param email    邮箱
     * @param password 密码
     * @return 用户
     */
    User findUserByEmailAndPassword(String email, String password);
}
